package org.learn.test;

public class ArrayReverse02 {
    public static void main(String[] args) {
        int[] arr = {11,22,33,44,55,66};
        int[] arr2 = new int[arr.length];
        int j = 0;
        for(int i = arr.length - 1;i >= 0;i--,j++){
            arr2[j] = arr[i];
        }
        System.out.println("===翻转后的数组===");
        for(int i = 0; i < arr2.length;i++){

            System.out.print(arr2[i] + " ");
        }
    }
}
